package com.stylefeng.guns.modular.system.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.system.model.Gpc;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-24
 */
public interface GpcMapper extends BaseMapper<Gpc> {

	Gpc selectByDate(Gpc gpc);
	
	List<String> selectCodeListByDate(@Param("gTdate") Date date);

	List<Map<String, Object>> selectMapsByDm(@Param("page") Page<Gpc> page,@Param("gTdate") String date,@Param("dm") String dm,@Param("userId") Integer userId);

	List<Map<String, Object>> selectByCurrentDayGpc(@Param("gScode") List<String> gScode,@Param("gTdate") String gTime,@Param("buyDate") String buyDate,
			@Param("zlje") Integer zlje,@Param("mp") Integer mp);

	List<Map<String, Object>> selectMapsByGn(@Param("page") Page<Gpc> page,@Param("Gn") String gn,@Param("kpd") String kpd);
}
